let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.CameraMrg = void 0);
                var n = (function() {
                    function t() {}
                    return (
                        (t.init = function(t) {
                            (this._root = t), (this._camera = t.getComponent(cc.Camera));
                        }),
                        (t.update = function(t) {
                            if (this._shaking)
                                if (this._time <= 0)
                                    (this._shaking = !1), (this._root.position = this._originPt);
                                else {
                                    var e = Math.random() * this._strength,
                                        o = cc.v3(
                                            e * this.ShakSpeed.x,
                                            e * this.ShakSpeed.y,
                                            e * this.ShakSpeed.z
                                        );
                                    cc.Vec3.add(o, o, this._originPt),
                                        (this._root.position = o),
                                        (this._time -= t);
                                }
                        }),
                        (t.shake = function(t, e) {
                            void 0 === t && (t = 0.5),
                                void 0 === e && (e = 0.5),
                                this._root &&
                                ((this._time = t),
                                    (this._shaking = !0),
                                    (this._strength = e),
                                    (this._originPt = this._root.position.clone()));
                        }),
                        Object.defineProperty(t, 'root', {
                            get: function get() {
                                return this._root;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(t, 'camera', {
                            get: function get() {
                                return this._camera;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        (t.ShakSpeed = new cc.Vec3(0.2, 0.2, 0)),
                        t
                    );
                })();
                (o.CameraMrg = n), console.log("end");
            module.exports =  e.exports;